home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / idl / nsPIXPIProxy.idl < prev    next >
Text File  |  2006-05-08  |  4KB  |  105 lines

  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
  2. /* ***** BEGIN LICENSE BLOCK *****
  3.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4.  *
  5.  * The contents of this file are subject to the Mozilla Public License Version
  6.  * 1.1 (the "License"); you may not use this file except in compliance with
  7.  * the License. You may obtain a copy of the License at
  8.  * http://www.mozilla.org/MPL/
  9.  *
  10.  * Software distributed under the License is distributed on an "AS IS" basis,
  11.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12.  * for the specific language governing rights and limitations under the
  13.  * License.
  14.  *
  15.  * The Original Code is Mozilla Communicator client code, released
  16.  * March 31, 1998.
  17.  *
  18.  * The Initial Developer of the Original Code is
  19.  * Netscape Communications Corporation.
  20.  * Portions created by the Initial Developer are Copyright (C) 1998-2001
  21.  * the Initial Developer. All Rights Reserved.
  22.  *
  23.  * Contributor(s):
  24.  *   Daniel Veditz <dveditz@netscape.com>
  25.  *
  26.  * Alternatively, the contents of this file may be used under the terms of
  27.  * either of the GNU General Public License Version 2 or later (the "GPL"),
  28.  * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  29.  * in which case the provisions of the GPL or the LGPL are applicable instead
  30.  * of those above. If you wish to allow use of your version of this file only
  31.  * under the terms of either the GPL or the LGPL, and not to allow others to
  32.  * use your version of this file under the terms of the MPL, indicate your
  33.  * decision by deleting the provisions above and replace them with the notice
  34.  * and other provisions required by the GPL or the LGPL. If you do not delete
  35.  * the provisions above, a recipient may use your version of this file under
  36.  * the terms of any one of the MPL, the GPL or the LGPL.
  37.  *
  38.  * ***** END LICENSE BLOCK ***** */
  39.  
  40. #include "nsISupports.idl"
  41.  
  42. /**
  43.  * nsPIXPIProxy
  44.  *
  45.  * Used to handle miscellaneous things that XPInstall needs to perform
  46.  * over on the main UI thread.
  47.  */
  48. [scriptable,uuid(6F9D2890-167D-11d5-8DAF-000064657374)]
  49. interface nsPIXPIProxy : nsISupports
  50. {
  51.     void refreshPlugins(in boolean reloadPages);
  52.     void notifyRestartNeeded();
  53.  
  54.    /**
  55.     * Puts up an alert dialog with an OK button.
  56.     *
  57.     * @param title
  58.     *        Text to appear in the title of the dialog.
  59.     * @param text
  60.     *        Text to appear in the body of the dialog.
  61.     */
  62.     void alert(in wstring title, in wstring text);
  63.  
  64.     /**
  65.      * Puts up a dialog with up to 3 buttons and an optional, labeled checkbox.
  66.      *
  67.      * @param aDialogTitle
  68.      *        Text to appear in the title of the dialog.
  69.      * @param aText
  70.      *        Text to appear in the body of the dialog.
  71.      * @param aButtonFlags
  72.      *        A combination of Button Flags.
  73.      * @param aButton0Title
  74.      *        Used when button 0 uses TITLE_IS_STRING
  75.      * @param aButton1Title
  76.      *        Used when button 1 uses TITLE_IS_STRING
  77.      * @param aButton2Title
  78.      *        Used when button 2 uses TITLE_IS_STRING
  79.      * @param aCheckMsg
  80.      *        Text to appear with the checkbox.  Null if no checkbox.
  81.      * @param aCheckState    
  82.      *        Contains the initial checked state of the checkbox when this method
  83.      *        is called and the final checked state after this method returns.
  84.      *
  85.      * @return index of the button pressed.
  86.      *
  87.      * Buttons are numbered 0 - 2. The implementation can decide whether the
  88.      * sequence goes from right to left or left to right.  Button 0 is the
  89.      * default button unless one of the Button Default Flags is specified.
  90.      *
  91.      * The value for aButtonFlags is constructed using the constants defined by
  92.      * nsIPromptService.
  93.      *
  94.      * @see nsIPromptService
  95.      */
  96.     PRInt32 confirmEx(in wstring aDialogTitle,
  97.                       in wstring aText,
  98.                       in unsigned long aButtonFlags,
  99.                       in wstring aButton0Title,
  100.                       in wstring aButton1Title,
  101.                       in wstring aButton2Title,
  102.                       in wstring aCheckMsg,
  103.                       inout boolean aCheckState);
  104. };
  105.